<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>测试</title>
    <script>
        function androidBack(){
           alert("android 点了返回键");
        }

        //  23   4  19  20  24  25 21 22

       function android2Code(code){
          document.getElementById("box").innerHTML=document.getElementById("box").innerHTML+"点击了："+code+"<br/>";
         }
    </script>

</head>
<body>
<input type="button" onclick="NativeApp.exitApp()" value="退出"/><br/>
<input type="button" onclick="NativeApp.lockScreen()" value="锁屏"/><br/>
<div id="box"></div>
</body>
</html>